Skip to content

mxqsub: Implement --tmpdir argument without units #158

Merged
merged 1 commit into from
May 25, 2024
Merged

mxqsub: Implement --tmpdir argument without units #158

merged 1 commit into from
May 25, 2024

Conversation

donald
Copy link
Contributor

@donald donald commented May 25, 2024

The usage string of mxqsub says, that any size can be given without units, in which case Mebibytes is assumed.

This doesn't currently work for --tmpdir, because the function mx_strtobytes which is used to convert the string, doesn't accept numbers without units.

Try mx_strtou64() first to process numerical argments without a unit. Because tmpdir size is stored in Gibibytes and not Mebibytes internally, the value needs to be divided by 1024.

The usage string of mxqsub says, that any size can be given without
units, in which case Mebibytes is assumed.

This doesn't currently work for --tmpdir, because the function
mx_strtobytes which is used to convert the string, doesn't accept
numbers without units.

Try mx_strtou64() first to process numerical argments without a unit.
Because tmpdir size is stored in Gibibytes and not Mebibytes internally,
the value needs to be divided by 1024.
@donald donald merged commit 2c1f0e8 into master May 25, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant